//
//  AppDelegate.swift
//  FootballDataRecord
//
//  Created by Xx Jiang on 2020/1/6.
//  Copyright © 2020 Xx Jiang. All rights reserved.
//

import UIKit
import IQKeyboardManagerSwift
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    var window: UIWindow?
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        window = application.windows[0]
        window?.frame = UIScreen.main.bounds
        DHDataBaseManager.shareDataBaseManager.creatTable(sql:creatMatchTableSql, tableName: matchTableName)
        DHDataBaseManager.shareDataBaseManager.creatTable(sql:creatTeamTableSql, tableName: teamTableName)
        DHDataBaseManager.shareDataBaseManager.creatTable(sql:creatPlayerTableSql, tableName: playerTableName)
        DHDataBaseManager.shareDataBaseManager.creatTable(sql:creatMatchDataTableSql, tableName: matchDataTableName)
        let HomeNAVC = UINavigationController.init(rootViewController: HomeViewController())
        window?.rootViewController = HomeNAVC
        window?.makeKeyAndVisible()
        let manager = IQKeyboardManager.shared
        manager.enable = true
        manager.shouldResignOnTouchOutside = true

//        makeData()

        return true
    }
    
 
}

